xen/shadow: Clean up use of assertions in multi.c
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 16 Apr 2014 18:35:21 +0000 (19:35 +0100)
committerTim Deegan <tim@xen.org>
Thu, 24 Apr 2014 11:38:41 +0000 (12:38 +0100)
commit2333acf2aec4cd6e8e6d1e9ee04b8ef12767254c
treea79b5ad334f6bd669a5f0c783904c1eadedbbd73
parente326b878b21931ec6f4b6c70c762c578255d2809
xen/shadow: Clean up use of assertions in multi.c

Use BUILD_BUG_ON()s in preference to ASSERT(sizeof(foo) == sizeof (bar)).

sh_map_domain_page() is just a thin wrapper around map_domain_page(), which
cannot fail.  Asserting its success is redundant.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/multi.c